package game.module.ranking.bean;

public class RankingHero {

	private int id;

	private String name;

	private int grade;

	private int careerId;

	private int copper;

	private short position;

	/**
	 * 两次排行的位置变化
	 */
	private short changePosition;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getGrade() {
		return grade;
	}

	public void setGrade(int grade) {
		this.grade = grade;
	}

	public int getCareerId() {
		return careerId;
	}

	public void setCareerId(int careerId) {
		this.careerId = careerId;
	}

	public int getCopper() {
		return copper;
	}

	public void setCopper(int copper) {
		this.copper = copper;
	}

	public short getChangePosition() {
		return changePosition;
	}

	public void setChangePosition(short changePosition) {
		this.changePosition = changePosition;
	}

	public short getPosition() {
		return position;
	}

	public void setPosition(short position) {
		this.position = position;
	}

	@Override
	public boolean equals(Object obj) {
		if (obj instanceof RankingHero) {
			RankingHero other = (RankingHero) obj;
			return id == other.getId();
		}
		return false;
	}
}
